﻿<UserControl x:Class="WorldSimulatorWPF.RenderWindow"
             xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
             xmlns:d="http://schemas.microsoft.com/expression/blend/2008" 
			 xmlns:hlx="http://helixtoolkit.codeplex.com"
             mc:Ignorable="d" 
             d:DesignHeight="768" d:DesignWidth="1024" Background="Black" MouseDown="Viewport3D_MouseDown" MouseLeave="Viewport3D_MouseLeave" MouseMove="Viewport3D_MouseMove">

    <DockPanel LastChildFill="True" Background="Transparent">
		<hlx:HelixViewport3D IsPanEnabled="False" IsRotationEnabled="False" ShowFrameRate="True" ShowViewCube="False">
			<hlx:HelixViewport3D.Camera>
				<PerspectiveCamera x:Name="Camera" FieldOfView="45" FarPlaneDistance="100" LookDirection="0,0,-1" NearPlaneDistance="0.1" Position="0,0,80" UpDirection="0,1,0">
					<PerspectiveCamera.Transform>
						<Transform3DGroup>
							<RotateTransform3D CenterX="0" CenterY="0" CenterZ="0">
								<RotateTransform3D.Rotation>
									<AxisAngleRotation3D x:Name="CameraXRotation" Axis="1,0,0" Angle="0" />
								</RotateTransform3D.Rotation>
							</RotateTransform3D>
							<RotateTransform3D CenterX="0" CenterY="0" CenterZ="0">
								<RotateTransform3D.Rotation>
									<AxisAngleRotation3D x:Name="CameraYRotation" Axis="0,1,0" Angle="0" />
								</RotateTransform3D.Rotation>
							</RotateTransform3D>
						</Transform3DGroup>
					</PerspectiveCamera.Transform>
				</PerspectiveCamera>
			</hlx:HelixViewport3D.Camera>
			<ModelVisual3D x:Name="World">
				<ModelVisual3D x:Name="AmbientLightContainer">
					<ModelVisual3D.Content>
						<AmbientLight x:Name="AmbientLight" Color="#888"/>
					</ModelVisual3D.Content>
				</ModelVisual3D>
				<ModelVisual3D x:Name="PointLightContainer">
					<ModelVisual3D.Content>
						<PointLight x:Name="PointLight" Color="#AAA" ConstantAttenuation="0.5" LinearAttenuation="0" Position="0,0,0" QuadraticAttenuation="0" Range="1000" />
					</ModelVisual3D.Content>
				</ModelVisual3D>
			</ModelVisual3D>
		</hlx:HelixViewport3D>
	</DockPanel>
</UserControl>
